package com.smxy.daydayup.service.feign;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "zfRest", url = "${coworker.zf.url:http://localhost:8888/}")
public interface ZfRest {
    @Data
    class QuestionBank {

        @ApiModelProperty(value = "主键 题库id", example = "1")
        private Integer bankId;

        @ApiModelProperty(value = "题库名称", example = "小学数学")
        private String bankName;

    }
    @PostMapping("/teacher/addQuestionBank")
    void addQBank(@RequestBody QuestionBank qBank, @RequestHeader("Authorization") String token);
}
